﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace GatherWebLib.Model
{
   public class cPublishTask_m
    {
        

            public cPublishTask_m()
            {
                m_PublishData = new DataTable();
            }

            private int _id;
            public int ID
            {
                set { _id = value; }
                get { return _id; }
            }
            private Int64 m_TaskID;
            public Int64 TaskID
            {
                get { return m_TaskID; }
                set { m_TaskID = value; }
            }

            private string m_TaskName;
            public string TaskName
            {
                get { return m_TaskName; }
                set { m_TaskName = value; }
            }

          

            private DataTable m_PublishData;
            public DataTable PublishData
            {
                get { return m_PublishData; }
                set { m_PublishData = value; }
            }

            public int Count
            {
                get { return m_PublishData.Rows.Count; }
            }

            private cGlobalParas.PublishType m_PublishType;
            public cGlobalParas.PublishType PublishType
            {
                get { return m_PublishType; }
                set { m_PublishType = value; }
            }

            private string m_ExportFile;
            public string ExportFileName
            {
                get { return m_ExportFile; }
                set { m_ExportFile = value; }
            }

            private string m_DataSource;
            public string DataSource
            {
                get { return m_DataSource; }
                set { m_DataSource = value; }
            }

          

            private string m_DataTableName;
            public string DataTableName
            {
                get { return m_DataTableName; }
                set { m_DataTableName = value; }
            }

        
            private string m_Sql;
            public string Sql
            {
                get { return m_Sql; }
                set { m_Sql = value; }
            }

            

            /// <summary>
            /// 导出文本或Excel文件时，是否输出表头
            /// </summary>
            private bool m_IsExportHeader;
            public bool IsExportHeader
            {
                get { return m_IsExportHeader; }
                set { m_IsExportHeader = value; }
            }

            private DateTime _AddTime;
            public DateTime AddTime
            {
                get { return _AddTime; }
                set {  _AddTime = value; }
            }
        }
    
}
